#!/bin/bash
# Tested in CentOS 7
set -e
yum -y install wget fontconfig ttmkfdir
mkdir -p /usr/local/share/fonts
wget -P /usr/local/share/fonts/ https://gitee.com/guaicai/Linux-Script/raw/master/fonts/msyh.ttc
wget -P /usr/local/share/fonts/ https://gitee.com/guaicai/Linux-Script/raw/master/fonts/simhei.ttf
wget -P /usr/local/share/fonts/ https://gitee.com/guaicai/Linux-Script/raw/master/fonts/simsun.ttc
chmod -R 755 /usr/local/share/fonts
ttmkfdir -e /usr/share/X11/fonts/encodings/encodings.dir
fc-cache
fc-list